import { RouteRecordRaw } from 'vue-router';

export const dataManageRouter: RouteRecordRaw = {
  path: '/data-manage',
  name: 'data-manage',
  component: () => import('@/layout/routerView/parent.vue'),
  redirect: '/data-manage/ysj',
  meta: {
    title: '数据管理',
    isLink: '',
    isHide: false,
    isKeepAlive: true,
    isAffix: false,
    isIframe: false,
    roles: ['admin', 'common'],
    icon: 'iconfont icon-fuzhiyemian',
  },
  children: [
    {
      path: '/data-manage/ysj',
      name: 'manageYSJ',
      component: () => import('@/views/data-manage/ysj/index.vue'),
      meta: {
        title: '元数据管理',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin'],
        icon: '',
      },
    },
  ],
};
